//
//  ICMAppointmentActivityView.h
//  ICrEAM
//
//  Created by rainimute on 16/11/2.
//  Copyright © 2016年 mac. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ICMSelecteActivityModel.h"
#import "ICMTitleTextFeildView.h"
@class ICMActivityModel;
@class ICMAppointmentOtherInfoModel;

@interface ICMAppointmentActivityView : UIView

//是否编辑模式
@property (nonatomic, assign) BOOL isEditType;
@property (nonatomic, copy) NSString *carType;
@property (nonatomic, strong) ICMTitleTextFeildView *carTypeView;
@property (nonatomic, copy) NSString *stepInTime;
@property (nonatomic, strong) ICMTitleTextFeildView *stepInTimeView;
@property (nonatomic, strong) ICMAppointmentOtherInfoModel *basicOtherModel;

@property (nonatomic, assign) BOOL isPayForType;

//活动获取需要的VIN码
@property (nonatomic, strong) NSMutableArray *VIN_FOR_ACTIVITY;

- (void)getActivityWithData:(id)data;


@property (nonatomic, strong) UITableView *activityTableView;

@property (nonatomic, strong) NSMutableArray *activityModels;

@property (nonatomic, strong) NSMutableArray *selectedIndexs;

//选择的活动
@property (nonatomic ,strong) NSMutableArray *selectedActivitys;

+ (instancetype)createSelecteActivityViewWithFrame:(CGRect)frame;

//编辑模式调用
- (void)setupSelecteActivityViewWithActivityModel:(ICMActivityModel*)activityModel;

//显示信息
- (void)showActMsg;

@end


/*ICMSelecteActivityCell*/
@class ICMAppointmentActivityCell;
@protocol ICMAppointmentActivityCellDelegate <NSObject>

@optional
- (void)didSelectedCell:(ICMAppointmentActivityCell*)cell;

@end

@interface ICMAppointmentActivityCell : UITableViewCell

@property (nonatomic, weak) id<ICMAppointmentActivityCellDelegate>delegate;

@property (nonatomic, strong) UIButton *stateButton;

@property (nonatomic, strong) UILabel *activityNameLabel;

@property (nonatomic, strong) UILabel *subNameLabel;

@property (nonatomic, strong) UILabel *startTimeLabel;

@property (nonatomic, strong) UILabel *endTimeLabel;

- (void)setupSelecteActivityCellWithModel:(ICMSelecteActivityModel*)model  andSelected:(BOOL)isSelected;

@end
